package baiju;

public class Singleton {
	
	private static Singleton instance;
	
	public static Singleton createInstance()
	{
		
		if (instance == null)
		{
			System.out.println("First run, initializing object");
			instance = new Singleton();
		}
		else
		{
			System.out.println("Object already exists, using the same");
		}
		return instance;
		
	}

}
